package com.allprs.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.allprs.common.annotation.Excel;
import com.allprs.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 服务发布日志VO
 *
 * @author wjf
 * @date 2021-09-23 17:23:39
 */
public class ServicePubLog extends BaseEntity implements Serializable {
    /**
     * 主键
     */
    @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
    private Integer logId;

    /**
     * 服务id
     */
    private Integer serviceId;

    /**
     * 资源id
     */
    private String resourceId;

    /**
     * 服务名称
     */
    @Excel(name = "服务名称")
    private String serviceName;

    /**
     * 服务别名
     */
    @Excel(name = "服务别名")
    private String serviceNickName;

    /**
     * 服务类型
     */
    @Excel(name = "服务类型", readConverterExp = "1000008=地形CTB,2000004=wfs,5000012=精细模型,12000008=影像TSM," +
            "13000006=点云数据,14000003=BIM数据,16000002=倾斜模型,17000002=矢量瓦片")
    private String serviceType;

    /**
     *服务来源
     */
    @Excel(name = "服务来源", readConverterExp = "1=自有服务,2=外部服务")
    private String serviceSource;

    /**
     * 服务地址
     */
    @Excel(name = "服务地址")
    private String serviceUrl;

    /**
     * 发布人id
     */
    private String publishUserId;

    /**
     * 发布人姓名
     */
    @Excel(name = "发布人")
    private String publishUserName;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /**
     * 服务状态
     */
    @Excel(name = "服务状态", readConverterExp = "1=启用,2=禁用")
    private String serviceState;

    /**
     * 发布状态
     */
    @Excel(name = "发布状态", readConverterExp = "0=发布失败,1=发布成功")
    private String publishState;

    /**
     * 发布接口请求入参
     */
    private String requestParam;

    /**
     * 发布接口返回参数
     */
    private String responseResult;

    /**
     * 错误消息
     */
    private String errorMsg;

    private List<String> typeList;  //资源类型集合

    private List<Integer> ids;

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getServiceNickName() {
        return serviceNickName;
    }

    public void setServiceNickName(String serviceNickName) {
        this.serviceNickName = serviceNickName;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getServiceSource() {
        return serviceSource;
    }

    public void setServiceSource(String serviceSource) {
        this.serviceSource = serviceSource;
    }

    public String getServiceUrl() {
        return serviceUrl;
    }

    public void setServiceUrl(String serviceUrl) {
        this.serviceUrl = serviceUrl;
    }

    public String getPublishUserId() {
        return publishUserId;
    }

    public void setPublishUserId(String publishUserId) {
        this.publishUserId = publishUserId;
    }

    public String getPublishUserName() {
        return publishUserName;
    }

    public void setPublishUserName(String publishUserName) {
        this.publishUserName = publishUserName;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getPublishState() {
        return publishState;
    }

    public void setPublishState(String publishState) {
        this.publishState = publishState;
    }

    public String getServiceState() {
        return serviceState;
    }

    public void setServiceState(String serviceState) {
        this.serviceState = serviceState;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public String getResponseResult() {
        return responseResult;
    }

    public void setResponseResult(String responseResult) {
        this.responseResult = responseResult;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public List<String> getTypeList() {
        return typeList;
    }

    public void setTypeList(List<String> typeList) {
        this.typeList = typeList;
    }

    public List<Integer> getIds() {
        return ids;
    }

    public void setIds(List<Integer> ids) {
        this.ids = ids;
    }
}
